import { Init, Provide } from '@midwayjs/decorator';
import { BaseService } from '@cool-midway/core';
import { InjectEntityModel } from '@midwayjs/typeorm';
import { Repository } from 'typeorm';
import { BannersettingBannerEntity } from '../entity/banner';

/**
 * bannersetting模块-轮播设置
 */
@Provide()
export class BannersettingBannerService extends BaseService {
  @InjectEntityModel(BannersettingBannerEntity)
  bannersettingBannerEntity: Repository<BannersettingBannerEntity>;

  @Init()
  async init() {
    await super.init();
    this.setEntity(this.bannersettingBannerEntity);
  }
}
